
set(name network)

set(source_files
        model/address.cc
        model/application.cc
        model/buffer.cc
        model/byte-tag-list.cc
        model/channel.cc
        model/channel-list.cc
        model/chunk.cc
        model/header.cc
        model/nix-vector.cc
        model/node.cc
        model/node-list.cc
        model/net-device.cc
        model/packet.cc
        model/packet-metadata.cc
        model/packet-tag-list.cc
        model/socket.cc
        model/socket-factory.cc
        model/tag.cc
        model/tag-buffer.cc
        model/trailer.cc
        utils/address-utils.cc
        utils/crc32.cc
        utils/data-rate.cc
        utils/drop-tail-queue.cc
        utils/dynamic-queue-limits.cc
        utils/error-channel.cc
        utils/error-model.cc
        utils/ethernet-header.cc
        utils/ethernet-trailer.cc
        utils/flow-id-tag.cc
        utils/inet-socket-address.cc
        utils/inet6-socket-address.cc
        utils/ipv4-address.cc
        utils/ipv6-address.cc
        utils/mac16-address.cc
        utils/mac48-address.cc
        utils/mac64-address.cc
        utils/llc-snap-header.cc
        utils/output-stream-wrapper.cc
        utils/packetbb.cc
        utils/packet-burst.cc
        utils/packet-socket.cc
        utils/packet-socket-address.cc
        utils/packet-socket-factory.cc
        utils/pcap-file.cc
        utils/pcap-file-wrapper.cc
        utils/queue.cc
        utils/queue-item.cc
        utils/queue-limits.cc
        utils/queue-size.cc
        utils/net-device-queue-interface.cc
        utils/radiotap-header.cc
        utils/simple-channel.cc
        utils/simple-net-device.cc
        utils/sll-header.cc
        utils/packet-socket-client.cc
        utils/packet-socket-server.cc
        utils/packet-data-calculators.cc
        utils/packet-probe.cc
        utils/mac8-address.cc
        helper/application-container.cc
        helper/net-device-container.cc
        helper/node-container.cc
        helper/packet-socket-helper.cc
        helper/trace-helper.cc
        helper/delay-jitter-estimation.cc
        helper/simple-net-device-helper.cc
        )

set(header_files
        model/address.h
        model/application.h
        model/buffer.h
        model/byte-tag-list.h
        model/channel.h
        model/channel-list.h
        model/chunk.h
        model/header.h
        model/net-device.h
        model/nix-vector.h
        model/node.h
        model/node-list.h
        model/packet.h
        model/packet-metadata.h
        model/packet-tag-list.h
        model/socket.h
        model/socket-factory.h
        model/tag.h
        model/tag-buffer.h
        model/trailer.h
        utils/address-utils.h
        utils/crc32.h
        utils/data-rate.h
        utils/drop-tail-queue.h
        utils/dynamic-queue-limits.h
        utils/error-channel.h
        utils/error-model.h
        utils/ethernet-header.h
        utils/ethernet-trailer.h
        utils/flow-id-tag.h
        utils/inet-socket-address.h
        utils/inet6-socket-address.h
        utils/ipv4-address.h
        utils/ipv6-address.h
        utils/llc-snap-header.h
        utils/mac16-address.h
        utils/mac48-address.h
        utils/mac64-address.h
        utils/output-stream-wrapper.h
        utils/packetbb.h
        utils/packet-burst.h
        utils/packet-socket.h
        utils/packet-socket-address.h
        utils/packet-socket-factory.h
        utils/pcap-file.h
        utils/pcap-file-wrapper.h
        utils/generic-phy.h
        utils/queue.h
        utils/queue-item.h
        utils/queue-limits.h
        utils/queue-size.h
        utils/net-device-queue-interface.h
        utils/radiotap-header.h
        utils/sequence-number.h
        utils/sgi-hashmap.h
        utils/simple-channel.h
        utils/simple-net-device.h
        utils/sll-header.h
        utils/packet-socket-client.h
        utils/packet-socket-server.h
        utils/pcap-test.h
        utils/packet-data-calculators.h
        utils/packet-probe.h
        utils/mac8-address.h
        helper/application-container.h
        helper/net-device-container.h
        helper/node-container.h
        helper/packet-socket-helper.h
        helper/trace-helper.h
        helper/delay-jitter-estimation.h
        helper/simple-net-device-helper.h
        )

set(libraries_to_link ${libcore} ${libstats})

set(test_sources
        test/buffer-test.cc
        test/drop-tail-queue-test-suite.cc
        test/error-model-test-suite.cc
        test/ipv6-address-test-suite.cc
        test/packetbb-test-suite.cc
        test/packet-test-suite.cc
        test/packet-metadata-test.cc
        test/pcap-file-test-suite.cc
        test/sequence-number-test-suite.cc
        test/packet-socket-apps-test-suite.cc
        )

build_lib("${name}" "${source_files}" "${header_files}" "${libraries_to_link}" "${test_sources}")

